<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <title>用户中心</title>
    <link rel="stylesheet" type="text/css" href="__STATIC__/aui/aui.min.css" />
</head>
<style>
    .my-header {
        background: url('{$config.usercenterBackbround}') no-repeat;
        background-size: cover;
        min-height: 170px;
        position: relative;
        margin-bottom: 0px;
    }
    .my-info {
        position: relative;
        padding: 8px;
        width: 100%;
        bottom: 0;
        text-align: center;
        vertical-align: center;
    }
    .my-info img {
        width: 50px;
        height: 50px;
        border-radius: 5px;
        background-color: #a5a4a4;
    }
    .my-info p.nickname {
        margin-top: 5px;
        color: #ffffff;
        font-size: 18px;
    }
    .my-menu {
        position: absolute;
        width: 100%;
        height: 50px;
        line-height: 25px;
        left: 0;
        bottom: 0;
        text-align: center;
        background: #ffffff;
        filter:Alpha(opacity=50);
        background:rgba(10, 10, 10, 0.74) none repeat scroll 0 0 !important;
        color: #ffffff;
        font-size: 14px;
    }
    .my-menu .aui-col-xs-3 {
        border-right: 1px solid #9bd6d5;
    }
    .my-menu .aui-col-xs-3:last-child {
        border-right: none;
    }
    .my-menu > div:active {
        /*background: #ffffff;*/
        /*filter:Alpha(opacity=50);*/
        /*background:rgba(255, 255, 255, 0.2) none repeat scroll 0 0 !important;*/
    }
    .aui-list-view-cell {
        line-height: 26px;
    }
    .my-menu div{
        padding-left: 10px;
    }
    .aui-nav .aui-bar-tab .aui-iconfont{
        padding-top: 5px;
    }
    .active-info{
        color: #2d4b9b;
    }
    #tabbar1{
        border-right: 1px solid #bbbbbb;
    }
    footer.aui-nav{
        height: 40px;
    }
    .aui-grid-nine li{
        padding: 0;
    }
    .aui-btn-info{
        background-color: #2d4b9b;
        border:1px solid #2d4b9b;
    }
    .aui-btn-info.active, .aui-btn-info:active{
        background-color: #293D7A;
        border:1px solid #293D7A;
    }
    .aui-btn-block{
        padding: 5px 0;
    }
    .hide{
        display: none;
    }
    .sh, .qy, .qb, .jifen{
        padding-left: 25px;
        color: #7B7B7B;
    }
    .aui-arrow-unfold:after{
        content: '\e661';
    }
    .hide a:after{
        content: '';
    }
    .edit{
        float: right;
        padding: 0px;
    }
    .box-shadow-3{
        -webkit-box-shadow:0.1px 1px 3px 1px rgb(4, 5, 8);
        -moz-box-shadow:0.1px 1px 3px 1px rgb(4, 5, 8);
        box-shadow:0.1px 1px 3px 1px rgb(4, 5, 8);
    }
</style>
<body>
<div class="aui-content my-header">
    <div class="my-info">
        <!--<a class="edit" href="{:U('edit', $map)}" title="编辑"><img src="__IMG__/m/icon_pencil.png" width="30" width="30"/></a>-->
    </div>
    <div class="my-menu aui-text-left">
        <div class="aui-col-xs-12">尊敬的{$nickname}会员您好 <a href="{:U('edit', $map)}" title="编辑" ><img src="__IMG__/m/icon_pencil.png" style="background-color:#bbbbbb;border-radius: 5px;position: relative;top: 5px" width="20" width="20"/></a></div>
        <div class="aui-col-xs-12">您拥有的积分：{$available_credit|default=0}</div>
    </div>
</div>
<div class="aui-content" style="margin-bottom: 0px">
    <ul class="aui-grid-nine">
        <li class="aui-col-xs-6 aui-text-center" onclick="link('{:addons_url('UserCenter://Project/lists',$map)}')">
            <span class="">全部项目</span>
            <p>{$project.total|default=0}</p>
        </li>
        <li class="aui-col-xs-6 aui-text-center" onclick="link('{:addons_url('UserCenter://Project/lists',array_merge($map,['status'=>3]))}')">
            <span>签约项目</span>
            <p>{$project.sign|default=0}</p>
        </li>
    </ul>
</div>
<div class="aui-content aui-card " style="border: none;text-align: center;margin-bottom: 0px">
    <button class="aui-btn aui-btn-info" style="margin: 8px;padding: 6px 35px" onclick="link('{:addons_url('UserCenter://Project/add')}')"><i class="aui-iconfont aui-icon-write"></i>提交项目</button>
</div>
<div class="aui-content aui-card">
    <ul class="aui-list-view">
        <li class="aui-list-view-cell target" data-id="sh">
            <a class="aui-arrow-right aui-iconfont aui-icon-copy"> 审核状态</a>
        </li>
        <li class="aui-list-view-cell hide sh">
            <a class="aui-arrow-right" href="{:addons_url('UserCenter://Project/lists',array_merge($map,['status'=>1]))}">审核中
                <notempty name="project['notice_ing']">
                    <span class="aui-badge aui-badge-danger">{$project['notice_ing']}</span>
                <else/>
                    <span class="aui-badge">{$project['ing']|default=0}</span>
                </notempty>
            </a>
        </li>
        <li class="aui-list-view-cell hide sh">
            <a class="aui-arrow-right" href="{:addons_url('UserCenter://Project/lists',array_merge($map,['status'=>2]))}">审核通过
                <notempty name="project['notice_pass']">
                    <span class="aui-badge aui-badge-danger">{$project['notice_pass']}</span>
                    <else/>
                    <span class="aui-badge">{$project['pass']|default=0}</span>
                </notempty>
            </a>
        </li>
        <li class="aui-list-view-cell hide sh">
            <a class="aui-arrow-right" href="{:addons_url('UserCenter://Project/lists',array_merge($map,['status'=>0]))}">审核未通过
                <notempty name="project['notice_npass']">
                    <span class="aui-badge aui-badge-danger">{$project['notice_npass']}</span>
                    <else/>
                    <span class="aui-badge">{$project['npass']|default=0}</span>
                </notempty>
            </a>
        </li>
        <li class="aui-list-view-cell target" data-id="qy">
            <a class="aui-arrow-right aui-iconfont aui-icon-time"> 签约状态</a>
        </li>
        <li class="aui-list-view-cell hide qy">
            <a class="aui-arrow-right" href="{:addons_url('UserCenter://Project/lists',array_merge($map,['status'=>3]))}">签约
                <notempty name="project['notice_sign']">
                    <span class="aui-badge aui-badge-danger">{$project['notice_sign']}</span>
                    <else/>
                    <span class="aui-badge">{$project['sign']|default=0}</span>
                </notempty>
            </a>
        </li>
        <li class="aui-list-view-cell hide qy">
            <a class="aui-arrow-right" href="{:addons_url('UserCenter://Project/lists',array_merge($map,['status'=>4]))}">未签约
                <notempty name="project['notice_nsign']">
                    <span class="aui-badge aui-badge-danger">{$project['notice_nsign']}</span>
                    <else/>
                    <span class="aui-badge">{$project['nsign']|default=0}</span>
                </notempty>
            </a>
        </li>
        <li class="aui-list-view-cell target" data-id="qb">
            <a class="aui-arrow-right aui-iconfont aui-icon-copy"> 全部项目</a>
        </li>
        <li class="aui-list-view-cell hide qb">
            <a class="aui-arrow-right" href="{:addons_url('UserCenter://Project/lists',array_merge($map,['status'=>1]))}">审核中
                <notempty name="project['notice_ing']">
                    <span class="aui-badge aui-badge-danger">{$project['notice_ing']}</span>
                    <else/>
                    <span class="aui-badge">{$project['ing']|default=0}</span>
                </notempty>
            </a>
        </li>
        <li class="aui-list-view-cell hide qb">
            <a class="aui-arrow-right" href="{:addons_url('UserCenter://Project/lists',array_merge($map,['status'=>2]))}">审核通过
                <notempty name="project['notice_pass']">
                    <span class="aui-badge aui-badge-danger">{$project['notice_pass']}</span>
                    <else/>
                    <span class="aui-badge">{$project['pass']|default=0}</span>
                </notempty>
            </a>
        </li>
        <li class="aui-list-view-cell hide qb">
            <a class="aui-arrow-right" href="{:addons_url('UserCenter://Project/lists',array_merge($map,['status'=>0]))}">审核未通过
                <notempty name="project['notice_npass']">
                    <span class="aui-badge aui-badge-danger">{$project['notice_npass']}</span>
                    <else/>
                    <span class="aui-badge">{$project['npass']|default=0}</span>
                </notempty>
            </a>
        </li>
        <li class="aui-list-view-cell hide qb">
            <a class="aui-arrow-right" href="{:addons_url('UserCenter://Project/lists',array_merge($map,['status'=>3]))}">签约
                <notempty name="project['notice_sign']">
                    <span class="aui-badge aui-badge-danger">{$project['notice_sign']}</span>
                    <else/>
                    <span class="aui-badge">{$project['sign']|default=0}</span>
                </notempty>
            </a>
        </li>
        <li class="aui-list-view-cell hide qb">
            <a class="aui-arrow-right" href="{:addons_url('UserCenter://Project/lists',array_merge($map,['status'=>4]))}">未签约
                <notempty name="project['notice_nsign']">
                    <span class="aui-badge aui-badge-danger">{$project['notice_nsign']}</span>
                    <else/>
                    <span class="aui-badge">{$project['nsign']|default=0}</span>
                </notempty>
            </a>
        </li>
        <li class="aui-list-view-cell target" data-id="jifen">
            <a class="aui-arrow-right aui-iconfont aui-icon-recharge"> 我的积分</a>
        </li>
        <li class="aui-list-view-cell hide jifen">
            <a class="aui-arrow-right">可用积分
                <span class="aui-badge ">{$available_credit|default=0}</span>
            </a>
        </li>
        <li class="aui-list-view-cell hide jifen">
            <a class="aui-arrow-right">已用积分
                <span class="aui-badge ">{$used_credit|default=0}</span>
            </a>
        </li>
        <li class="aui-list-view-cell">
            <a class="aui-arrow-right aui-iconfont aui-icon-like" href="{:addons_url('UserCenter://Wish/add')}"> 我的心愿单</a>
        </li>
    </ul>
</div>
<div style="display: block;height: 45px"></div>
<footer class="aui-nav" id="aui-footer">
    <ul class="aui-bar-tab">
        <li class="active-info" id="tabbar1" onclick="link('{:addons_url('WeiSite://WeiSite/index')}')">
            <span class="aui-iconfont aui-icon-homefill" style="color: #eb7c15"></span>
        </li>
    </ul>
</footer>
</body>
<script src="__STATIC__/jquery-2.0.3.min.js"></script>
<script type="text/javascript">
function link(url){
    if(url){
        window.location = url;
    }
}
$(function(){
    var $target = $('.target');
    var lastTarget;
    $target.on('click', function(){
        var that = $(this),
            className = that.data('id'),
            child = $('.'+className);
        $target.find('a').removeClass('aui-arrow-unfold');
        if(child.is(':hidden')){
            $('.hide').hide();
            child.show();
            that.find('a').addClass('aui-arrow-unfold');
        }else{
            $('.hide').hide();
        }
    })
})
</script>
</html>